#include "WorkerThread.h"

WorkerThread::WorkerThread()
{

}
WorkerThread::~WorkerThread()
{

}

void WorkerThread::run (void) {
    //获取线程的句柄ID
    unsigned long threadID = (unsigned long) currentThreadId();
    while (1)
    {
        for (int i = 1; i < 20; i++) {
            qDebug ("id = %lu i = %d", threadID, i);
            msleep (200);
        }
    }
}
